﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.IO;

namespace AthCommander.Model
{
    public class DriveCollectionView : BindingList<DriveView>
    {
        #region Constructor
        
        public DriveCollectionView()
        {
            Fill();
        } 

        #endregion

        #region Private Helpers
        
        private void Fill()
        {
            DriveInfo[] drives = DriveInfo.GetDrives();

            foreach (var drive in drives)
            {
                this.Add(new DriveView(drive));
            }
        } 

        #endregion
    }
}
